home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Full / Paragon Drive Backup 9 / DB90_SE_x32.msi / Data1.cab / _C111A65EAB3D4D9DAB72FF4C9AD05F33 < prev    next >
Extensible Markup Language  |  2008-06-28  |  3KB  |  61 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  4.     <xsl:output 
  5.           method="text" 
  6.           version="4.0" 
  7.           encoding="UTF-8" 
  8.           omit-xml-declaration="yes" 
  9.           indent="yes"/>
  10.           
  11.     <xsl:template match="/">
  12. ===============================================================================
  13.  
  14.     QT_TRANSLATE_NOOP("QObject", "Volume") <xsl:value-of select="Root/VolumeInfo/Label"/> <xsl:value-of select="Root/VolumeInfo/Drive"/>
  15.     -----------------------------------------------------------------------
  16.     QT_TRANSLATE_NOOP("QObject", "Volume Size:") <xsl:value-of select="Root/VolumeInfo/VolumeSize"/>
  17.     QT_TRANSLATE_NOOP("QObject", "Cluster size:") <xsl:value-of select="Root/VolumeInfo/ClusterSize"/>
  18.     QT_TRANSLATE_NOOP("QObject", "Free Space:") <xsl:value-of select="Root/VolumeInfo/FreeSpace"/>
  19.     QT_TRANSLATE_NOOP("QObject", "Used Space:") <xsl:value-of select="Root/VolumeInfo/UsedSpace"/>
  20.  
  21.  
  22.     QT_TRANSLATE_NOOP("QObject", "Free space fragmentation")
  23.     -----------------------------------------------------------------------
  24. <xsl:choose><xsl:when test="number(Root/VolumeInfo/FreeSpaceInBytes) = 0">
  25.     QT_TRANSLATE_NOOP("QObject", "There is no free space on this volume.")
  26. </xsl:when><xsl:otherwise>
  27.     QT_TRANSLATE_NOOP("QObject", "Total Fragments:") <xsl:value-of select="Root/VolumeInfo/FragFreeSpace"/>
  28.     QT_TRANSLATE_NOOP("QObject", "Fragmentation:") <xsl:value-of select="Root/VolumeInfo/FreeSpaceFragmentation"/>%
  29. </xsl:otherwise></xsl:choose>
  30.  
  31.     QT_TRANSLATE_NOOP("QObject", "Bad clusters fragmentation")
  32.     -----------------------------------------------------------------------
  33. <xsl:choose><xsl:when test="number(Root/VolumeInfo/BadSpaceInBytes) = 0">
  34.       QT_TRANSLATE_NOOP("QObject", "No bad blocks found.")
  35. </xsl:when><xsl:otherwise>
  36.     QT_TRANSLATE_NOOP("QObject", "Fragments Size:") <xsl:value-of select="Root/VolumeInfo/BadSpace"/>
  37.     QT_TRANSLATE_NOOP("QObject", "Total Fragments:") <xsl:value-of select="Root/VolumeInfo/BadSpaceFragments"/>
  38. </xsl:otherwise></xsl:choose>
  39.  
  40.     QT_TRANSLATE_NOOP("QObject", "Files fragmentation")
  41.     -----------------------------------------------------------------------
  42.     QT_TRANSLATE_NOOP("QObject", "Total Files:") <xsl:value-of select="Root/FilesInfo/FilesTotal"/>
  43.     QT_TRANSLATE_NOOP("QObject", "Fragmented Files:") <xsl:value-of select="Root/FilesInfo/FilesFragmented"/>
  44.  
  45.  
  46.     QT_TRANSLATE_NOOP("QObject", "Folders fragmentation")
  47.     -----------------------------------------------------------------------
  48.     QT_TRANSLATE_NOOP("QObject", "Total Folders:") <xsl:value-of select="Root/FilesInfo/FoldersTotal"/>
  49.     QT_TRANSLATE_NOOP("QObject", "Fragmented Folders:") <xsl:value-of select="Root/FilesInfo/FoldersFragmented"/>
  50.  
  51.     <xsl:if test="number(Root/MFTInfo/UsedMFTRecords) != 0">
  52.     QT_TRANSLATE_NOOP("QObject", "MFT fragmentation")
  53.     -----------------------------------------------------------------------
  54.     QT_TRANSLATE_NOOP("QObject", "Total MFT Size:") <xsl:value-of select="Root/MFTInfo/MFTSize"/>
  55.     QT_TRANSLATE_NOOP("QObject", "MFT Records in Use:") <xsl:value-of select="Root/MFTInfo/UsedMFTRecords"/>
  56.     QT_TRANSLATE_NOOP("QObject", "MFT Fragments:") <xsl:value-of select="Root/MFTInfo/MFTFragments"/>
  57.     </xsl:if>
  58. ===============================================================================
  59. </xsl:template>
  60. </xsl:stylesheet>
  61.